//
//  RegistereVC.m
//  SDHuiYuShoping
//
//  Created by luojiao on 2017/4/27.
//  Copyright © 2017年 luojiao. All rights reserved.
//

#import "RegistereVC.h"

@interface RegistereVC ()<UITextFieldDelegate>

@end

@implementation RegistereVC

- (void)viewDidLoad {
    [super viewDidLoad];
    
    
    self.navigationController.navigationBar.hidden = YES;
    self.errorLabel.hidden = YES;
    self.passwordTextField.delegate = self;
    self.passwordTwoTextField.delegate = self;
    self.accountTextField.delegate = self;
    [self.bgImage setImage:[UIImage imageNamed:@"bg"]];
    
    //设置返回按钮
    [self.backButton setImage:[UIImage imageNamed:@"back_btn"] forState:UIControlStateNormal];
    [self.backButton setImageEdgeInsets:UIEdgeInsetsMake(0, -50, 0, 0)];
    [self.backButton setTitle:@"返回" forState:UIControlStateNormal];
    [self.backButton setTitleEdgeInsets:UIEdgeInsetsMake(0, -40, 0, 0)];
    //设置登录按钮
    [self.registerButton setBackgroundImage:[UIImage imageNamed:@"register_bg"] forState:UIControlStateNormal];
    [self.registerButton setBackgroundImage:[UIImage imageNamed:@"register_bg"] forState:UIControlStateHighlighted];
    [self.registerButton setTitle:@"注  册" forState:UIControlStateNormal];
    [self.registerButton.titleLabel setFont:[UIFont systemFontOfSize:18]];
    [self.registerButton setTitleColor:[FRUtils colorWithHexString:@"#dc0000"] forState:UIControlStateNormal];
    [self.registerButton setTintColor:[UIColor clearColor]];

}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (void)viewWillAppear:(BOOL)animated
{
    [super viewWillAppear:animated];
    //设置状态栏颜色黑色
    [UIApplication sharedApplication].statusBarStyle = UIStatusBarStyleDefault;
}

- (IBAction)backButton:(id)sender
{
    [self.navigationController popViewControllerAnimated:YES];
}
- (IBAction)registerButton:(id)sender {
}



#pragma mark - UITextFieldDelegate

- (BOOL)textFieldShouldReturn:(UITextField *)textField
{
    [textField resignFirstResponder];
    return YES;
}

- (void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event
{
    [self.view endEditing:YES];
}






/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
